<%@ taglib prefix="s" uri="/struts-tags"%>


<style>
#ProductList {
	height: 100%;
}

#ProductListLeftMenu {
	position: absolute;
	width: 150px;
	height: 100%;
	background-color: #fffff0;
}

#ProductListLeftMenu ul {
	list-style: none;
	text-decoration: none;
	display: block;
	font-family: Arial, Verdana;
	margin: 0px;
	color: #000000;
	white-space: nowrap;
	padding: 5px 10px 0px 10px;
}

#ProductListLeftMenu ul a {
	text-decoration: none;
	color: #444444;
	font-weight: bold;
	font-size: 14px;
}

#ProductListLeftMenu  li {
	list-style: none;
	font-family: Arial, Verdana;
	margin: 0px;
	color: #000000;
}

#ProductListLeftMenu ul ul a {
	text-decoration: none;
	color: #666666;
	font-weight: normal;
}

#ProductListRightMenu {
	position: absolute;
	background-color: #f0ffff;
	top: 0px;
	left: 150px;
	width: calc(100% - 150px);
	height: 100%;
}

#footer {
	font-family: Arial, Verdana;
	font-size: 12px;
	height: 50px;
}
</style>

<s:set name="adminLoginCheck" value="%{#session.adminLogin}" />
	<s:if test="%{#adminLoginCheck!=null}">

<div id="menuBottom">
	<ul>
		<li><a
			href="<s:url action="adminProduct">
			<s:param name="gender" >Woman</s:param>
			<s:param name="category" ></s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Women</a>
			<ul>

				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" >Woman</s:param>
			<s:param name="category" >T-Shirts/Tanks</s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">T-Shirts/Tanks</a></li>

				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" >Woman</s:param>
			<s:param name="category" >Shirts</s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Shirts</a></li>

				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" >Woman</s:param>
			<s:param name="category" >Sweaters</s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Sweaters</a></li>


				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" >Woman</s:param>
			<s:param name="category" >Jackets</s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Jackets</a></li>

				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" >Woman</s:param>
			<s:param name="category" >Dresses</s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Dresses</a></li>

				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" >Woman</s:param>
			<s:param name="category" >Skirts</s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Skirts</a></li>

				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" >Woman</s:param>
			<s:param name="category" >Pants</s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Pants</a></li>

				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" >Woman</s:param>
			<s:param name="category" >Shorts</s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Shorts</a></li>

				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" >Woman</s:param>
			<s:param name="category" >Leggins</s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Leggins</a></li>

				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" >Woman</s:param>
			<s:param name="category" >Others</s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Others</a></li>


			</ul></li>

		<li><a
			href="<s:url action="adminProduct">
			<s:param name="gender" >Man</s:param>
			<s:param name="category" ></s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Men</a>
			<ul>



				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" >Man</s:param>
			<s:param name="category" >Shirts</s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Shirts</a></li>

				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" >Man</s:param>
			<s:param name="category" >Sweaters</s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Sweaters</a></li>

				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" >Man</s:param>
			<s:param name="category" >Jackets</s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Jackets</a></li>

				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" >Man</s:param>
			<s:param name="category" >Pants</s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Pants</a></li>

				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" >Man</s:param>
			<s:param name="category" >Shorts</s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Shorts</a></li>

				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" >Man</s:param>
			<s:param name="category" >Others</s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Others</a></li>


				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" >Man</s:param>
			<s:param name="category" >Tank Tops</s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Tank
						Tops</a></li>

				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" >Man</s:param>
			<s:param name="category" >T-Shirts</s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">T-Shirts</a></li>




			</ul></li>

		<li><a
			href="<s:url action="adminProduct">
			<s:param name="gender" >Kid</s:param>
			<s:param name="category" ></s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Kids</a>
			<ul>
				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" >Kid</s:param>
			<s:param name="category" >Girls</s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Girls</a></li>

				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" >Kid</s:param>
			<s:param name="category" >Boys</s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Boys</a></li>
			</ul></li>

		<li><a
			href="<s:url action="adminProduct">
			<s:param name="gender" ></s:param>
			<s:param name="category" >Accessories</s:param>
			<s:param name="type" ></s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Accessories</a>
			<ul>
				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" ></s:param>
			<s:param name="category" >Accessories</s:param>
			<s:param name="type" >Headwear</s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Headwear</a></li>


				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" ></s:param>
			<s:param name="category" >Accessories</s:param>
			<s:param name="type" >Eyewear</s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Eyewear</a></li>

				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" ></s:param>
			<s:param name="category" >Accessories</s:param>
			<s:param name="type" >Bags</s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Bags</a></li>

				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" ></s:param>
			<s:param name="category" >Accessories</s:param>
			<s:param name="type" >Socks</s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Socks</a></li>

				<li><a
					href="<s:url action="adminProduct">
			<s:param name="gender" ></s:param>
			<s:param name="category" >Accessories</s:param>
			<s:param name="type" >Leather</s:param>
			<s:param name="pageNum" >1</s:param></s:url>">Leather</a></li>


			</ul></li>
	</ul>
</div>


<!--  -->
<!--  -->
<!--  -->
<!--  -->
<!--  -->

<div id="container">


	<div id="ProductList">
		<div id="ProductListLeftMenu">
			<s:iterator value="leftSideMenuList" var="leftSideCategory">
				<ul>
					<li><a
						href="<s:url action="adminProduct">
			<s:param name="gender" ><s:property  value="gender"/></s:param>
			<s:param name="category" ><s:property /></s:param>
			<s:param name="type" ></s:param>

			<s:param name="pageNum" >1</s:param></s:url>"><s:property /></a>
					</li>
					<ul>
						<s:set name="category1" value="category" />
						<s:if test="%{#category1==#leftSideCategory}">


							<s:iterator value="leftSideSubMenuList" var="leftSideType">
								<li><a
									href="<s:url action="adminProduct">
									<s:param name="gender" ><s:property  value="gender"/></s:param>
									<s:param name="category" ><s:property value="category"/></s:param>
									<s:param name="type" ><s:property value="%{#leftSideType}" /></s:param>
									<s:param name="pageNum" >1</s:param></s:url>">
										<s:property value="%{#leftSideType}" />
								</a></li>
							</s:iterator>
						</s:if>
					</ul>



				</ul>

			</s:iterator>

		</div>


		<div id="ProductListRightMenu">
			<s:iterator value="product_line">
				<div class="clothingList">

					<s:url action="adminProductDetail" var="urlTag">
						<s:param name="id">
							<s:property value="id" />
						</s:param>
					</s:url>
					<div class="clothing">
						<a href="<s:property value="#urlTag" />"><img
							src="./img/product_line_id/<s:property value="id"/>A.jpg" width="150" height="200"
							onerror="this.src='img/product_line_id/noPhoto.jpg'" /></a>
					</div>




					<!-- <a href="<s:url action="productList"></s:url>">
							<img  src="./img/w_<s:property value="print_number"/>.jpg" /></a> -->
					<s:property value="id" />
					<s:property value="name" />
					<!-- <img  src="./img/w_<s:property/>.jpg" /> -->

				</div>

			</s:iterator>

			<!--   "-->
			<div style="position: absolute; left: 50%; bottom: 10px;">
				<s:set var="end" value="maxPage" />

				<s:iterator var="counter" begin="1" end="end">
					<a
						href="<s:url action="adminProduct">
			<s:param name="gender" ><s:property value="gender"/></s:param>
			<s:param name="category" ><s:property value="category"/></s:param>
			<s:param name="type" ><s:property value="type"/></s:param>

			<s:param name="pageNum" ><s:property /></s:param>
			</s:url>"><s:property /></a>
				</s:iterator>
			</div>


			<!-- 
	<s:iterator var="counter2" begin="1" end="end">

		<s:form id="f1" action="productList">
			<s:hidden name="a" value="aaaa" />
			<s:hidden name="b" value="bbbb" />
			<s:hidden name="pageNum"><s:property /></s:hidden>
			<s:url action="productList" var="act" />
			<s:a id="a1" href="%{act}"><s:property /></s:a>
			<script type="text/javascript">
				$(document).ready(function() {
					$("#a1").click(function(event) {
						event.preventDefault();
						$("#f1").submit();
					});
				});
			</script>
		</s:form>
	</s:iterator>
 -->
			<!--<s:select list="{'Developer','Manager','Customer'}" name="rolesSelect" multiple="false"></s:select>-->
		</div>
	</div>

	<!--  -->
	<!--  -->
	<!--  -->
	<!--  -->
	<!--  -->






	<%-- <div>
			<!-- <s:url action="toDetail" var="urlTag">
				<s:param name="id">
					<s:property value="id" />
				</s:param>
			</s:url> -->
					<div class="clothing">
						<a href="<s:property value="#urlTag" />"><img
							src="./img/w_<s:property value="id"/>.jpg" /></a>
					</div>




			<!-- <a href="<s:url action="productList"></s:url>">
							<img  src="./img/w_<s:property value="print_number"/>.jpg" /></a> -->
	
			<!-- <img  src="./img/w_<s:property/>.jpg" /> -->

		</div> --%>


</div>

</s:if>